CONFIGURE_FILE(
  ${CMAKE_CURRENT_SOURCE_DIR}/py2x_converter.in
  ${CMAKE_CURRENT_BINARY_DIR}/py2x_converter @ONLY
  )

INSTALL(DIRECTORY py2x_converter
  DESTINATION ${PYLOTPATH_PYTHON}
  PATTERN "*.svn" EXCLUDE
  PATTERN "*.pyc" EXCLUDE
  PATTERN "*.py~" EXCLUDE
  )

INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/py2x_converter
        DESTINATION ${PYLOTPATH_BIN})
